﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Member_UC_Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            NewsListInit();
            WeiboListInit();
        }
    }

    protected void NewsListInit()
    {
        Repeater_NewsList.DataSource = eSYSU.Business.NewsService.GetUserSubsciptionNews("1", 0, 9);
        Repeater_NewsList.DataBind();
    }

    protected void WeiboListInit()
    {
        Repeater_WeiboList.DataSource = eSYSU.Weibo.SinaWeiboHandler.GetStatusesList(eSYSU.Weibo.SinaWeiboHandler.GetWeiboXML(1));
        Repeater_WeiboList.DataBind();
    }

    protected void Timer_uc_index_Tick(object sender, EventArgs e)
    {
        Timer_uc_index.Interval = 60000;
        WeiboListInit();
    }
}